<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@	page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
<br />
<h1>馆分类维护-查询<br/>
<div class="f-link"><a href="addRootData.do">新增馆</a></div>
</h1>
<div class="data-form"><s:form action="searchRootData.do" method="post">
	<b>是否可见：</b>
		<input type="radio" name="visibleParam" value="Y" <c-rt:if test="${visibleParam eq 'Y'}">checked="checked"</c-rt:if>/>是
		<input type="radio" name="visibleParam" value="N" <c-rt:if test="${visibleParam eq 'N'}">checked="checked"</c-rt:if>/>否
	<b>是否删除：</b>
		<input type="radio" name="deleteParam" value="Y" <c-rt:if test="${deleteParam eq 'Y'}">checked="checked"</c-rt:if>/>是
		<input type="radio" name="deleteParam" value="N" <c-rt:if test="${deleteParam eq 'N'}">checked="checked"</c-rt:if>/>否
	<input type="button" value="搜寻" onclick="this.form.submit();" />
</s:form></div>
<br />
<table class="tb-1" width="100%">
	<thead>
		<tr>
			<th>分类编号</th>
			<th>分类名称</th>
			<th>商品分类别名</th>
			<th>开始时间</th>
			<th>结束时间</th>
			<th>显示顺序</th>
			<th>是否可见</th>
			<th>是否删除</th>
			<th>部门</th>
			<th>版型编号</th>
			<th>异动资讯</th>
		</tr>
	</thead>
	<tbody>
		<c-rt:forEach items="${categories}" var="category" varStatus="rows_index">
			<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}">
				<td>${category.id}</td>
				<td><a href="${midContextPath }/category/editRootData.do?id=${category.id}">${category.name}</a></td>
				<td>${category.aliasName}</td>
				<td><fmt-rt:formatDate value="${category.startDate}" pattern="yyyy-MM-dd HH:mm" /></td>
				<td><fmt-rt:formatDate value="${category.endDate}" pattern="yyyy-MM-dd HH:mm" /></td>
				<td>${category.showSeq}</td>
				<td>
					<c-rt:if test="${category.isVisible eq 'Y'}">是</c-rt:if>
					<c-rt:if test="${category.isVisible eq 'N'}">否</c-rt:if>
				</td>
				<td>
					<c-rt:if test="${category.isDelete eq 'Y'}">是</c-rt:if>
					<c-rt:if test="${category.isDelete eq 'N'}">否</c-rt:if>
				</td>				
				<td>${groupsMap[category.orgnizationPath].description}</td>
				<td>${menu.options[category.templateId].name}</td>
				<td>建立者:${category.createUser}<br/>
						建立日期:<fmt-rt:formatDate value="${category.createDate}" pattern="yyyy-MM-dd HH:mm"/><br/>
						修改者:${category.modifyUser}<br/>
						修改日期:<fmt-rt:formatDate value="${category.modifyDate}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
			</tr>
		</c-rt:forEach>
	</tbody>
</table>